Skip to content

fix(doctests): raise launch_timeout for the nix run . UI tests - #77

Merged
dlipicar merged 1 commit into
masterfrom
fix/ui-doctest-launch-timeout
Jul 22, 2026
Merged

fix(doctests): raise launch_timeout for the nix run . UI tests#77
dlipicar merged 1 commit into
masterfrom
fix/ui-doctest-launch-timeout

Conversation

@dlipicar

Copy link
Copy Markdown
Contributor

Why

The tutorial doc-test went red on ubuntu in the nightly with:

inspector not available on port 3768 after 120s

and the last line of the launch log was building '/nix/store/…-logos-standalone-app-1.0.0.drv'… — the app was still compiling when the inspector clock expired. Nothing was actually broken.

The runner turns a nix run . launch into a nix build . warm-up, but that is packages.default — the UI plugin. nix run . launches apps.default, the standalone app, whose closure (logos-standalone-app + the bundled backend modules) is not in the plugin's build closure. So it compiles during launch, charged against the default 120s launch_timeout.

What

Add launch_timeout: 900 to the three nix run UI tests, with a comment explaining the gap. This is the same knob (and the same reason) the logos-wallet-module spec already documents.

launch_timeout is harness configuration — it is not rendered into the generated Markdown, so the tutorials themselves are unchanged.

Note

The nix build .-vs-apps.default gap is really a harness-level shortcoming; raising the per-spec timeout is the same mitigation every other affected spec uses. A follow-up in logos-doctest could make the warm-up cover apps.default and remove the need for this.

🤖 Generated with Claude Code

The tutorial doc-test went red on ubuntu with

  inspector not available on port 3768 after 120s

with `building '...-logos-standalone-app-1.0.0.drv'` as the last line of
the launch log: the app was still compiling when the clock ran out.

The runner pre-builds `nix run .` as `nix build .`, which is
packages.default — the UI plugin. But `nix run .` launches apps.default,
the standalone app, whose closure (logos-standalone-app plus the bundled
backend modules) is not covered by that warm build, so it compiles
during launch and is charged against the default 120s inspector wait.

Give the three `nix run` UI tests the same launch_timeout the
logos-wallet-module spec already uses for exactly this reason. Nothing
here is rendered into the generated Markdown.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 22, 2026 18:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

📊 Tutorial execution report

Rendered tutorial alongside the commands actually run and their output (updated each run, commit 2e2c2b1):

Pages can take a minute to update after the run finishes.

@dlipicar
dlipicar merged commit bfc34c4 into master Jul 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants